<?php
/**
 * 系统设置
 */

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\AdminController;
use App\Models\Settings;
use App\Models\Output;

class SettingController extends AdminController {
    public function index() {
        return view("theme::setting.index");
    }

    public function getList() {
        $output = $this->output->init("setting/getList", "获取设置成功");

        $settings = Settings::all();

        $output->setData($settings);
        return $output->json();
    }

    public function save() {

    }
}